﻿<UserControl x:Class="WGM_Client_Net35V2.Views.LoginView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" >
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="50" />
            <RowDefinition Height="3"/>
            <RowDefinition  />
        </Grid.RowDefinitions>
        <TextBlock FontFamily="Verdana" FontSize="30" Text="Wayne's Windows Messenger" Foreground="Black"   Margin="5">

        </TextBlock>
        <Rectangle Height="2" HorizontalAlignment="Stretch" Grid.Row="1">
            <Rectangle.Fill>
                <LinearGradientBrush EndPoint="1,0.5" StartPoint="0,0.5">
                    <GradientStop Color="White" Offset="0"/>
                    <GradientStop Color="Black" Offset="0.5"/>
                    <GradientStop Color="White" Offset="1"/>
                </LinearGradientBrush>
            </Rectangle.Fill>
        </Rectangle>
        <Border Width="400" Height="120" BorderThickness="0.5" BorderBrush="DarkSlateGray" HorizontalAlignment="Center" VerticalAlignment="Top" CornerRadius="5" Grid.Row="2" Background="White" Panel.ZIndex="1" Margin="0,50,0,0">
            <Border.Effect>
                <DropShadowEffect/>
            </Border.Effect>
            <Grid VerticalAlignment="Center">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition />
                    <ColumnDefinition  />
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="30" />
                    <RowDefinition Height="30" />
                    <RowDefinition Height="30" />
                </Grid.RowDefinitions>
                <TextBlock FontFamily="Verdana" FontSize="15" Text="Username" Foreground="DarkSlateGray" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="5"/>
                <TextBox FontFamily="Verdana" Name="_usernameTB" FontSize="15"  Foreground="DarkSlateGray" HorizontalAlignment="Stretch" VerticalAlignment="Center" Margin="5" Grid.Column="1" BorderThickness="0">
                    <TextBox.Background>
                        <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
                            <GradientStop Color="LightGray" Offset="0"/>
                            <GradientStop Color="WhiteSmoke" Offset="0.5"/>
                        </LinearGradientBrush>
                    </TextBox.Background>
                </TextBox>
                <TextBlock FontFamily="Verdana" FontSize="15" Text="Password" Foreground="DarkSlateGray" HorizontalAlignment="Right" VerticalAlignment="Bottom" Margin="0,0,5,12.206" Grid.Row="1" Height="18.23" Width="70.81" />
                <PasswordBox FontFamily="Verdana" Name="_passwordTB" FontSize="15" Foreground="DarkSlateGray" VerticalAlignment="Bottom" Margin="5,0,5,11.206" Grid.Column="1" Grid.Row="1" BorderThickness="0" Height="20.23" >
                    <PasswordBox.Background>
                        <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
                            <GradientStop Color="LightGray" Offset="0"/>
                            <GradientStop Color="WhiteSmoke" Offset="0.5"/>
                        </LinearGradientBrush>
                    </PasswordBox.Background>
                </PasswordBox>
                <StackPanel Grid.Row="2" Grid.ColumnSpan="2" HorizontalAlignment="Right" Orientation="Horizontal">
                    <TextBlock FontFamily="Verdana" FontSize="15" Text="Login" Foreground="DarkSlateGray" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="5" Grid.Row="1" Cursor="Hand"  Name="_loginBtn" MouseLeftButtonDown="OnLoginClick"/>
                    <TextBlock FontFamily="Verdana" FontSize="15" Text="Cancel" Foreground="DarkGray" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="5" Grid.Row="1" Cursor="Hand" Name="_cancelBtn"/>
                    <CheckBox VerticalAlignment="Center" Margin="15,5,5,5" Name="_rememberLoginChk">
                        <TextBlock FontFamily="Verdana" FontSize="15" Text="Remember me" Foreground="DarkGray" HorizontalAlignment="Right" VerticalAlignment="Center"  Cursor="Hand" />
                    </CheckBox>
                </StackPanel>

            </Grid>
        </Border>
        <Image Grid.RowSpan="3" HorizontalAlignment="Right" VerticalAlignment="Bottom" Source="/Images/mainicon2.png" Height="180" Width="180" Panel.ZIndex="0" >
            
        </Image>      
    </Grid>
</UserControl>
